package com.xiaozou.domain;

import com.xiaozou.enums.QuestionType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionAskMethodId {
    private String question;
    private String askMethodId;
    private Integer questionType;

    public QuestionAskMethodId(String question, String askMethodId) {
        this(question, askMethodId, QuestionType.TEXT.getValue());
    }

    public QuestionAskMethodId(String question, Integer questionType) {
        this(question, null, questionType);
    }

    public QuestionAskMethodId(String question) {
        this(question, null, QuestionType.TEXT.getValue());
    }

    public QuestionAskMethodId copy() {
        QuestionAskMethodId questionAskMethodId = new QuestionAskMethodId();
        questionAskMethodId.setQuestion(question);
        questionAskMethodId.setAskMethodId(askMethodId);
        questionAskMethodId.setQuestionType(questionType);
        return questionAskMethodId;
    }
}
